package de.hsw.facebook.model.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import de.hsw.facbook.model.entities.Group;


public class GroupRowMapper {
	private Log logger = LogFactory.getLog(GroupRowMapper.class);
	
	public Group mapGroup(ResultSet rs) throws SQLException{		
		logger.debug("-> entering mapAccount");		
		//Account-Objekt erstellen
		Group group = new Group();
		group.setGroupID(rs.getInt("groupID"));
		group.setGroupname(rs.getString("groupname"));
		group.setDesription(rs.getString("description"));
		group.setAccountID(rs.getInt("accountID"));
		
		return group;
	}
}
